<?php
namespace app\common\model;
use think\Config;
use think\Db;
use think\Model;
use think\Request;
use think\Session;
use think\Url;
use think\Redirect;

class Order extends Model
{


  
     /**
     * [deleteRole description]
     * @author Zcc<2351976426@qq.com>
     * @dateTime 2016-12
     * @param    [type]                   $id [description]
     * @return   [type]                       [description]
     */
    public function deleteRule($id)
    {
        $articlecatRow = self::get($id);
        if ($articlecatRow == false) {
            $this->error = "对象不存在";
            return false;
        }

        return $articlecatRow->delete();
    }
    
    
}
